# Copyright (c) 2014 by Michael Zahniser
#
# Endless Sky is free software: you can redistribute it and/or modify it under the
# terms of the GNU General Public License as published by the Free Software
# Foundation, either version 3 of the License, or (at your option) any later version.
#
# Endless Sky is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE. See the GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License along with
# this program. If not, see <https://www.gnu.org/licenses/>.


# Engines

outfit "Small Graviton Thruster"
	category "Engines"
	series "Engines"
	index 91011
	"cost" 12000000
	thumbnail "outfit/small quarg thruster"
	"mass" 50
	"outfit space" -50
	"engine capacity" -50
	"thrust" 80
	"thrusting energy" 5.6
	"thrusting heat" 1.5
	"reverse thrust" 40
	"reverse thrusting energy" 2.8
	"reverse thrusting heat" .75
	"force protection" 0.1
	"inertia reduction" 0.1
	"flare sprite" "effect/graviton flare/graviton flare"
		"frame rate" 5
		"scale" .75
	description "How exactly Quarg thrusters work is unknown, but the mechanism that powers even this small set of engines consumes more energy than some human warships. Where all this energy goes is a complete mystery."
	description "	These engines also have strange capabilities which seem to violate the laws of physics as humanity understands them. Ships equipped with them accelerate faster under their own power than one would expect, while also taking less impact from external forces."

outfit "Small Graviton Steering"
	category "Engines"
	series "Engines"
	index 91010
	"cost" 9000000
	thumbnail "outfit/small quarg steering"
	"mass" 30
	"outfit space" -30
	"engine capacity" -30
	"turn" 1200
	"turning energy" 2.4
	"turning heat" .75
	"force protection" 0.1
	"inertia reduction" 0.1
	description "Despite their small size, these Quarg steering engines can turn their ships on a dime. It is rumored that, unlike human steering thrusters, the Quarg do not care where on the hull these are installed, producing the same rotational moment even if directly in line with the ship's center of mass."
	description "	They also have strange capabilities which seem to violate the laws of physics as humanity understands them. Ships with these engines accelerate faster under their own power than one would expect, while also taking less impact from external forces."


outfit "Medium Graviton Thruster"
	category "Engines"
	series "Engines"
	index 91021
	"cost" 20000000
	thumbnail "outfit/medium quarg thruster"
	"mass" 70
	"outfit space" -70
	"engine capacity" -70
	"thrust" 120
	"thrusting energy" 8
	"thrusting heat" 2
	"reverse thrust" 60
	"reverse thrusting energy" 4
	"reverse thrusting heat" 1
	"force protection" 0.15
	"inertia reduction" 0.15
	"flare sprite" "effect/graviton flare/graviton flare"
		"frame rate" 5
	description "Quarg thrusters are quite powerful for their size and produce very little heat, but at the cost of consuming immense amounts of energy. The mechanism by which they produce thrust is unknown, but it is rumored that the passing of a Quarg ship wreaks havoc on every gravitational wave antenna in the system."
	description "	They also have strange capabilities which seem to violate the laws of physics as humanity understands them. Ships with these engines accelerate faster under their own power than one would expect, while also taking less impact from external forces."


outfit "Medium Graviton Steering"
	category "Engines"
	series "Engines"
	index 91020
	"cost" 16000000
	thumbnail "outfit/medium quarg steering"
	"mass" 50
	"outfit space" -50
	"engine capacity" -50
	"turn" 2400
	"turning energy" 4
	"turning heat" 1
	"force protection" 0.15
	"inertia reduction" 0.15
	description "According to rumor, some Quarg ships have their steering engines installed internally, with no need for external thrusters. Much like a gyroscope, they can seemingly orient a ship from anywhere, but unlike them they never seem to saturate or become locked."
	description "	They also have strange capabilities which seem to violate the laws of physics as humanity understands them. Ships with these engines accelerate faster under their own power than one would expect, while also taking less impact from external forces."


outfit "Large Graviton Thruster"
	category "Engines"
	series "Engines"
	index 91031
	"cost" 32000000
	thumbnail "outfit/large quarg thruster"
	"mass" 100
	"outfit space" -100
	"engine capacity" -100
	"thrust" 185
	"thrusting energy" 12
	"thrusting heat" 3
	"reverse thrust" 92.5
	"reverse thrusting energy" 6
	"reverse thrusting heat" 1.5
	"force protection" 0.2
	"inertia reduction" 0.2
	"flare sprite" "effect/graviton flare/graviton flare"
		"frame rate" 5
		"scale" 1.25
	description "This large set of Quarg thrusters is both powerful and subtle, leaving behind no bright exhaust trail nor emitting any detectable radiation aside from a faint violet glow. This is juxtaposed with the extreme amount of energy these engines consume, enough to power entire stations."
	description "	They also have strange capabilities which seem to violate the laws of physics as humanity understands them. Ships with these engines accelerate faster under their own power than one would expect, while also taking less impact from external forces."


outfit "Large Graviton Steering"
	category "Engines"
	series "Engines"
	index 91030
	"cost" 25000000
	thumbnail "outfit/large quarg steering"
	"mass" 70
	"outfit space" -70
	"engine capacity" -70
	"turn" 3600
	"turning energy" 6
	"turning heat" 1.5
	"force protection" 0.2
	"inertia reduction" 0.2
	description "Quarg ships are famed for their ability to turn quickly and precisely, as though oriented by a divine hand rather than the flickering exhaust of human steering thrusters. According to some guesses on their mode of operation, this may be closer to the truth than not."
	description "	They also have strange capabilities which seem to violate the laws of physics as humanity understands them. Ships with these engines accelerate faster under their own power than one would expect, while also taking less impact from external forces."

# Power

outfit "Quantum Vacuum Battery"
	category "Power"
	series "Batteries"
	index 91010
	cost 3000000
	thumbnail "outfit/quarg quantum battery"
	"mass" 50
	"outfit space" -50
	"energy capacity" 60000
	"active cooling" 25
	"cooling energy" 1.25
	description "Human engineers who first came into contact with the Quarg were astonished by the sheer energy density of their technology. This Quarg battery holds enough energy to level a small city, rumored to be stored in the negative quantum vacuum pressure between innumerable tiny plates. Somehow, the battery chills itself as energy is drained from it, seemingly in defiance of the human understanding of thermodynamics."


outfit "Antimatter Core"
	category "Power"
	series "Generators"
	index 91010
	cost 20000000
	thumbnail "outfit/quarg antimatter core"
	"mass" 50
	"outfit space" -50
	"energy generation" 12
	"heat generation" 10
	description "Although humanity is now capable of producing antimatter in relatively significant quantities when compared to a thousand years ago, it is still nothing next to the output of the Quarg, who can produce enough antimatter to outfit even civilian ships with an extremely compact Antimatter Core. This device releases extreme amounts of energy in a simple, elegant package, all while producing surprisingly little waste heat."


outfit "Singularity Core"
	category "Power"
	series "Generators"
	index 91020
	cost 50000000
	thumbnail "outfit/quarg singularity core"
	"mass" 400
	"outfit space" -80
	"energy generation" 23.5
	"heat generation" 22.5
	"inertia reduction" 0.15
	description "According to little more than vague allusions by the Quarg, these generators contain a minuscule black hole, spewing radiation as it is fed a trickle of mass. This black hole is small enough to output a truly staggering amount of energy via Hawking radiation, which grows in power as a black hole shrinks, something that suggests the black hole within the Singularity Core is truly microscopic."
	description "	Further wild guesses by scientists and conspiracy theorists alike allege that the Quarg are able to somehow trick the laws of physics themselves to make this black hole weigh far less than it otherwise should, bringing its mass from that of a small moon to something a ship could have a hope of moving."


outfit "Quasar Core"
	category "Power"
	series "Generators"
	index 91030
	cost 100000000
	thumbnail "outfit/quarg quasar core"
	"mass" 600
	"outfit space" -120
	"energy generation" 37.5
	"heat generation" 35
	"inertia reduction" 0.15
	description "This larger generator appears similar to the Singularity Core, only even more powerful. Little is known about its exact function, but purely based on its name, some have speculated that the Quasar Core's increased output is the result of the black hole at its core being fed enough mass to form a small accretion disk, releasing light and heat as it falls towards the event horizon and is compressed to an unimaginable degree."
	description "	While this process should be far less fuel-efficient than simply capturing the Hawking radiation emitted by the black hole alone, the staggering power density of this generator appears to be evidence it was worth the trade."


# Systems

outfit "Aspis Shield Generator"
	category "Systems"
	series "Shields"
	index 91010
	cost 5000000
	thumbnail "outfit/quarg aspis shield generator"
	"mass" 40
	"outfit space" -40
	"shield generation" 4
	"shield energy" 2
	"disruption protection" .2
	"piercing protection" .4
	description "Even the smallest example of Quarg shield generation displays defensive powers greater than what humans would normally consider to be sufficient."


outfit "Ancile Shield Generator"
	category "Systems"
	series "Shields"
	index 91020
	cost 7500000
	thumbnail "outfit/quarg ancile shield generator"
	"mass" 55
	"outfit space" -55
	"shield generation" 6.25
	"shield energy" 3.125
	"disruption protection" .3
	"piercing protection" .6
	description "In addition to being able to recover their shields more quickly and efficiently than any other technology of considerable size, Quarg shield generators also provide an impressive degree of protection against weapons designed to bypass shields entirely."


outfit "Aegis Shield Generator"
	category "Systems"
	series "Shields"
	index 91030
	cost 12500000
	thumbnail "outfit/quarg aegis shield generator"
	"mass" 80
	"outfit space" -80
	"shield generation" 10
	"shield energy" 5
	"disruption protection" .5
	"piercing protection" 1
	description "The first humans who met the Quarg thought that their technology worked on magic, and many even think so to this day. The mechanism by which this Quarg shield generator works is completely unknown to humanity, providing an astounding amount of protection, and the Quarg aren't interested in giving up the secrets behind it."


outfit "Peripheral Repair Hub"
	category "Systems"
	series "Repair"
	index 91010
	cost 2000000
	thumbnail "outfit/quarg peripheral repair hub"
	"mass" 25
	"outfit space" -25
	"fuel generation" 0.025
	"hull repair rate" 1
	"hull energy" .5
	description "The repair systems employed by the Quarg operate in ways that seem to defy reality, somehow gathering matter and injecting it into a ship's hull and fuel systems. This provides essential maintenance that benefits core aspects of spaceflight - durability, longevity, and most importantly, survivability."


outfit "Central Repair Hub"
	category "Systems"
	series "Repair"
	index 91020
	cost 5000000
	thumbnail "outfit/quarg central repair hub"
	"mass" 55
	"outfit space" -55
	"fuel generation" 0.07
	"hull repair rate" 2.5
	"hull energy" 1.25
	description "In a manner which is not easily discernible to humans, this system collects ambient matter in space and feeds it back to the ship from a large central hub of wires and tubes. The accumulated matter is then used to both regenerate the ship's hull and refill its fuel reserves."


# Weapons

outfit "Skydagger"
	category "Turrets"
	series "Turrets"
	index 91010
	cost 8500000
	thumbnail "outfit/quarg skydagger"
	"mass" 25
	"outfit space" -25
	"weapon capacity" -25
	"turret mounts" -1
	"required crew" 1
	weapon
		sprite "projectile/skydagger"
			"frame rate" 1
		"hardpoint sprite" "hardpoint/quarg skydagger"
		"hardpoint offset" 7
		sound "skydagger"
		"hit effect" "skylance impact"
		"inaccuracy" .6
		"turret turn" 3.1
		"velocity" 350
		"lifetime" 1
		"reload" 1
		"firing energy" 4
		"firing heat" .5
		"shield damage" 7.5
		"hull damage" 6
		"ion damage" .05
		"scrambling damage" .05
	description "Where overwhelming force is not necessary, these beam weapons are used in place of more powerful weapons to simply provide defense to non-combatants. However, they remain a danger not to be taken lightly."

outfit "Skylance"
	category "Turrets"
	series "Turrets"
	index 91020
	cost 18000000
	thumbnail "outfit/quarg skylance"
	"mass" 50
	"outfit space" -50
	"weapon capacity" -50
	"turret mounts" -1
	"required crew" 1
	weapon
		sprite "projectile/skylance"
			"frame rate" 1
		"hardpoint sprite" "hardpoint/quarg skylance"
		"hardpoint offset" 10
		sound "skylance"
		"hit effect" "skylance impact"
		"inaccuracy" .4
		"turret turn" 2.6
		"velocity" 500
		"lifetime" 1
		"reload" 1
		"firing energy" 8
		"firing heat" 1
		"shield damage" 15
		"hull damage" 12
		"ion damage" .1
		"scrambling damage" .1
	description "Despite being among the oldest and least specialized of Quarg weaponry, these immensely powerful beam weapons strike fear into the hearts of all who dare oppose them. With a design that has survived longer than humanity itself, the Skylance is an elegant weapon, one from a more civilized age."

effect "skylance impact"
	sprite "effect/skylance impact"
		"no repeat"
		"frame rate" 12
	"lifetime" 10
	"random angle" 180
	"velocity scale" 0.


outfit "Stratospear"
	category "Turrets"
	series "Anti-Missile"
	index 91010
	cost 9000000
	thumbnail "outfit/quarg stratospear"
	"mass" 40
	"outfit space" -40
	"weapon capacity" -40
	"turret mounts" -1
	weapon
		"hit effect" "quarg anti-missile"
		"hardpoint sprite" "hardpoint/quarg anti missile"
		"hardpoint offset" 4
		"anti-missile" 25
		"velocity" 500
		"lifetime" 1
		"reload" 10
		"firing energy" 40
	description "While those who can directly match the power of Quarg energy weapons are rare, some foolish younger races have attempted to oppose the Quarg with missile-based nuclear weapons, hoping for their destructive power to even the playing field. These Quarg anti-missile defenses, firing pinpoint beams of energy, have often dashed these hopes, targeting projectiles from considerable range and ensuring that only the most powerful missiles are capable of getting near a Quarg ship."

effect "quarg anti-missile"
	sprite "effect/quarg anti missile"
		"no repeat"
		"frame rate" 3
	sound "quarg anti-missile"
	"sound category" "anti-missile"
	"lifetime" 21
	"velocity scale" 1


outfit "Elysian Ranseur"
	category Guns
	series "Guns"
	index 91010
	cost 40000000
	mass 65
	thumbnail "outfit/quarg ranseur"
	"gun ports" -1
	"outfit space" -65
	"weapon capacity" -65
	weapon
		sound "ranseur"
		"fire effect" "ranseur"
		"hit effect" "jump drive"
		"hit effect" "disruptor impact" 10
		lifetime 1
		reload 100
		velocity 600
		"firing energy" 900
		"firing heat" 30
		"shield damage" 2100
		"hull damage" 1500
		"hit force" 600
		"penetration count" 5
	description "The technology behind this weapon is incomprehensibly complex, creating pulses of energy that bend spacetime itself. Powerful gravitational pulses are forced through the fold, penetrating through multiple targets with ease and delivering dangerous blows to those along the path. How the weapon is able to do any of this is only known to the Quarg."


effect "ranseur"
	sprite effect/ranseur
		"frame rate" 30
		"no repeat"
	lifetime 11


outfit "Celestial Culverin"
	category Guns
	series "Guns"
	index 91020
	cost 22000000
	mass 45
	thumbnail "outfit/quarg culverin"
	"gun ports" -1
	"outfit space" -45
	"weapon capacity" -45
	weapon
		sprite projectile/culverin
			"frame rate" 60
			"random start frame"
			rewind
		sound "culverin"
		"hit effect" "culverin hit" 20
		"die effect" "culverin die"
		lifetime 110
		reload 36
		homing 4
		velocity 10
		acceleration 0.6
		drag 0.05
		turn 60
		inaccuracy 12
		"stream"
		tracking .7
		"firing energy" 180
		"firing heat" 22.5
		"shield damage" 300
		"hull damage" 225
		"slowing damage" 4.5
		"fuel damage" 9
		"missile strength" 600
	description "This weapon tangles with spacetime in ways beyond understanding, producing gravitational forces that slow the target down. As if fulfilling their own intended destiny, the projectiles are guided to their target, disrupting their fuel systems. This utility, on top of being almost unavoidable, allows the weapon to lock down the Quarg's more distant enemies."

effect "culverin hit"
	sprite "effect/skylance impact"
		"frame rate" 30
		"no repeat"
	lifetime 2
	"random lifetime" 4
	"velocity scale" 0
	"random angle" 180
	"random velocity" 8

effect "culverin die"
	sprite "effect/jump drive"
		"frame rate" 30
		"no repeat"
	lifetime 5
	"velocity scale" 0.4


outfit "Astral Ribault"
	category "Turrets"
	series "Turrets"
	index 91030
	cost 15000000
	thumbnail "outfit/quarg ribault"
	"mass" 35
	"outfit space" -35
	"weapon capacity" -35
	"required crew" 1
	"turret mounts" -1
	weapon
		sprite "projectile/ribault"
		"hardpoint sprite" "hardpoint/quarg ribault"
		"hardpoint offset" 10.
		"fire effect" "ribault flare"
		"hit effect" "electron impact"
		sound "ribault"
		"inaccuracy" 13
		"turret turn" 2.5
		"velocity" 13
		"reload" 17
		"burst reload" 2
		"burst count" 19
		"firing energy" 80
		"firing heat" 5
		"submunition" "ribault unguided" 2
	description "The rapid flurries shot by this turret cover a wide area at a long range, firing a storm of negative energy particles. Attractive forces guide these particles towards their target, dealing very high damage to enemies within the immediate vicinity while keeping those that flee within the Quarg's reach."

outfit "ribault unguided"
	weapon
		sprite "projectile/ribault"
		"hit effect" "ribault impact"
		"inaccuracy" 11
		"lifetime" 20
		"submunition" "ribault guided"

outfit "ribault guided"
	weapon
		sprite "projectile/ribault"
			"frame rate" 10
			"random start frame"
		"hit effect" "ribault impact"
		"inaccuracy" 11
		"lifetime" 30
		"fade out" 7
		"turn" 5
		"homing" 4
		"tracking" .6
		"acceleration" 1
		"drag" .1
		"hit force" -120
		"shield damage" 100
		"hull damage" 35

effect "ribault flare"
	sprite "effect/distancer"
		"frame rate" 1.2
	"lifetime" 0
	"velocity scale" .1

effect "ribault impact"
	sprite "effect/electron impact"
		"no repeat"
		"frame rate" 30
	"lifetime" 5
	"random angle" 2
	"random spin" 1
	"velocity scale" -.003


outfit "Slipstream Projector"
	category "Guns"
	series "Guns"
	index 91030
	cost 18000000
	thumbnail "outfit/unknown"
	"mass" 200
	"outfit space" -200
	"weapon capacity" -200
	"gun ports" -1
	"required crew" 1
	weapon
		sprite "projectile/slipstream projector/slipstream"
			"frame rate" 20
		sound "slipstream projector"
		"inaccuracy" .1
		"velocity" 500
		"lifetime" 1
		"reload" 1
		"firing energy" 30
		"firing heat" 2
		"hit force" -400
		"shield damage" 30
		"penetration count" 100
	description "While the exact workings of graviton tech are a mystery, it's no secret that this device manipulates gravity in such a wondrous way that it even bends the massive architecture of ringworlds to its whim. While the force is not enough to harm the delicate structure, the negative energy is powerful enough to rip off the shielding of a ship in a remarkably short period of time."


# Special

outfit "Phalanx System"
	category "Hand to Hand"
	series "Fortifications"
	index 91010
	thumbnail "outfit/quarg countermeasures"
	"capture defense" 36
	"unplunderable" 1
	description "With an abundance of caution regarding the potential theft and misuse of their technology, Quarg ships are outfitted with special systems for repelling boarders in a manner that could be considered overkill. Because no one wants to be caught by the Quarg with stolen technology, these systems are pretty much worthless on the open market."
